<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    /*body div  p {color: blue}*/
    div>div>p{color: pink}

    a:link{color: red}
    a:visited{color: blue}
    a:hover{color: yellow}
    a:active{color: pink}
  </style>
</head>
<body>

<a href="http://www.qq.com">QQ官网</a>
<a href="http://www.58.com">58官网</a>
<a href="http://www.wechat.com">微信官网</a>
<a href="http://www.youku.com">优酷官网</a>


<p>p1</p>
<div>
  <p>p2</p>
  <div>
    <p>p3</p>
  </div>
  <div>
    <p>p4</p>
    <div>
      <p>p5</p>
    </div>
  </div>
</div>
</body>
</html>